<template>
  <div class="home_content">
    <div class="item" v-for="(item, index) in content" :key="index">
      <div class="item_l">
        <img class="w100" :src="item.imgUrl" alt="" />
      </div>
      <div class="itme_r">
        <div class="num">{{ item.num }}</div>
        <div class="item_title">{{ item.title }}</div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, reactive, onMounted, nextTick } from "vue";
const content = [
  {
    title: "采购订货单",
    num: 589,
    imgUrl: require("@/assets/home/home1.png"),
  },
  {
    title: "采购入库单",
    num: 589,
    imgUrl: require("@/assets/home/home2.png"),
  },
  {
    title: "销售订货单",
    num: 589,
    imgUrl: require("@/assets/home/home3.png"),
  },
  {
    title: "销售出库单",
    num: 589,
    imgUrl: require("@/assets/home/home4.png"),
  },
  {
    title: "费用单",
    num: 589,
    imgUrl: require("@/assets/home/home5.png"),
  },
  {
    title: "结算单",
    num: 589,
    imgUrl: require("@/assets/home/home6.png"),
  },
];
</script>

<style lang="less" scoped>
.home_content {
  display: grid;
  justify-content: space-between;
  grid-template-columns: repeat(6, 1fr);
  /* 创建6列，每列等宽 */
}

.item {
  height: 100px;
  border-radius: 6px;
  margin-right: 20px;
  box-sizing: border-box;
  /* 包括padding和border在内的总宽度为16.66% */
  background-color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-left: 20px;
}

.item:last-child {
  margin: 0;
}
.item_l {
  width: 60px;
  height: 60px;
  margin-right: 20px;
}
.num {
  font-size: 24px;
  font-weight: bold;
}
.item_title {
  font-size: 14px;
  color: #999999;
}
.itme_r {
  flex: 1;
}
</style>
